package cloudgamemysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/4/18 16:18
*/

// JWAdminUserCanceling 用户注销倒计时表
type JWAdminUserCanceling struct {
	ID           int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	UserID       int64          `json:"user_id" gorm:"column:user_id;type:bigint;not null;default:0;comment:用户ID"`
	ToCancelTime time.Time      `json:"to_cancel_time" gorm:"column:to_cancel_time;type:datetime;default:null;comment:执行注销的时间"`
	CreatedAt    time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt    time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt    gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (JWAdminUserCanceling) TableName() string {
	return "jw_admin_user_canceling"
}
